<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" isELIgnored="false" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>抓取航线设置</title>
<link href="<%=request.getContextPath()%>/fare/css/base.css" rel="stylesheet" type="text/css" />
<%-- <script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/show.js"></script> --%>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/fare/js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/fare/js/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/multiblepicker.js"></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/citylist.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/cityquery/querycity.js'></script>
<script type='text/javascript' src='<%=request.getContextPath()%>/fare/js/ajaxfileupload.js'></script>
<link href='<%=request.getContextPath()%>/fare/js/cityquery/cityquery.css' rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/lib/ligerUI/js/ligerui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jsFile/wait.js"></script>
<link href="<%=request.getContextPath() %>/fare/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath() %>/fare/lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
<link rev="stylesheet" media="all" href="<%=request.getContextPath() %>/fare/css/form_style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<%=request.getContextPath() %>/fare/js/checkIE.js"></script><!--检测IE-->
<!-- 圆角文本框 -->
<link href="<%=request.getContextPath() %>/fare/css/htc/htc.css" rel="stylesheet" type="text/css" />




<script>

var gridManager = null;
var _dialog;
$(function (){
	gridManager = PageLoader.initGridPanel();
});



PageLoader = {
		initGridPanel:function(){
			var g = $("#maingrid").ligerGrid({
				checkbox:true,
		         height:"400px",
		         rowHeight: 28,//行默认的高度
		         headerRowHeight: 30,//表头行的高度
		         pageSize : 20,
		         onToNext:next,//条件查询方法
		         columns: [	 { display: '航段', editor: { type: 'text' }, render : function(rowdata){
		        	                    return rowdata.fromCityName+"-"+rowdata.toCityName;
		         			  }}, 
		         			  { display: '网站名称', name: 'grabChannel'},
		         			  { display: '规则',width : 200,render:function(rowdata){
		         				  if(rowdata.isReturn==1){
		         					  var result="频率" +(rowdata.frequency/60)+"小时 ";
		         					  $.each(rowdata.assignDayList,function(idx,e){
		         						 result+="第"+e.assignFlightDay+"天出发待"+e.assignRoundDay+"天回来";
		         					  });
		         					  return result;
		         				  }else{
		         					 return "未来"+rowdata.grabsopeBegin + "到"+ rowdata.grabsopeEnd +"天频率" +(rowdata.frequency/60)+"小时 "; 
		         				  }
		         				  
		    
		         			  }},
		         			  { display: '抓取日期段',columns: [{display:'开始日期', name:'validityFrom',render:function(rowdata){
		         					var s= rowdata.validityFrom;
		         					if(s==null){
		         						return;
		         					}
		         					var times =s.time;
	         			    		var date =new Date(times);
	         			    		return date.getUTCFullYear()+"-"+(date.getUTCMonth()+1)+"-"+date.getUTCDate();
		         					}},
		         			    {display:'结束日期',name:'validityTo',render:function(rowdata){
		         			      		var s= rowdata.validityTo;
		         			    		if(s==null){
		         			    			return;
		         			    		}
		         			    		var times =s.time;
		         			    		var date =new Date(times);
		         			    		return date.getUTCFullYear()+"-"+(date.getUTCMonth()+1)+"-"+date.getUTCDate();
		         			    }}]},
		         			  { display: '是否抓取往返数据' , name:'isReturn', render : function(rowdata){
		         				  if(rowdata.isReturn==1){
		         					  return "是";
		         				  }else{
		         					  return "否";
		         				  }
		         			  }},
		         			  
		         			  { display: '操作人',name: 'userName'},
		         			  { display: '操作时间',name: 'userCreateTime',render : function(rowdata){
		         				  var s =rowdata.userCreateTime;
		         				  if(s==null)return;
		         					 var times =s.time;
	         			    		var date =new Date(times);
	         			    		return date.getUTCFullYear()+"-"+(date.getUTCMonth()+1)+"-"+date.getUTCDate();
		         			  }}
		         			  
		                   ],
		                   enabledEdit: false, clickToEdit: false, isScroll: false,  
		                   url:"<%=request.getContextPath()%>/taskInfoAction!pageJson.action",
		                   width: '100%',
		                   toolbar: { items: [
		                     { id: "add", text: '增加', click: itemclick, icon: 'add' },
		           	        { line: true },
		           	        { id: "modify", text: '修改', click: itemclick, icon: 'modify' },
		                       { line: true },
		           	        { id: "remove", text: '删除', click: itemclick, icon: 'delete' }
		                   ]}
			});
			g.toggleCol("id",false);//隐藏id列
			 return g;
		}
}

/*分页条件查询参数*/
function next(){
	gridManager.setOptions({
        parms: [
		{name:"fromCity",value: $("#fromCity2").val()},
		{name:"toCity",value: $("#toCity2").val()},
		{name:"grabChannel2",value: $("#grabChannel2").val()},
		{name:"validityFromStr",value: $("#grapDate").val()},
		{name:"formDateNumber",value: $("#formDateNumber2").val()},
		{name:"toDateNumber",value: $("#toDateNumber").val()}
        ]
    });
}

function searchAction(){
  
	 var tocity2 = $("#toCity2").val();
	 var formcity2 = $("#fromCity2").val();
	 if((formcity2 == tocity2)&(tocity2 !='中文/拼音')&(formcity2 !='中文/拼音')){
		 alert("出发地与目的地不能相同，请重新选择！");
		 $("#fromCity2").focus();
		 
	 }else{
		 	var formDateNumber2=$.trim($("#formDateNumber2").val());
			var toDateNumber2=$.trim($("#toDateNumber2").val());
		
			if(formDateNumber2==""){
				$("#formDateNumber2").val("");
			}
		
			if(isNaN(formDateNumber2)){
				alert("航班日期范围只能为数字！");
				$("#formDateNumber2").val("");
				$("#formDateNumber2").focus();
			}else{
				
				if(toDateNumber2==""){
					//alert("航班日期不能为空！");
					$("#toDateNumber2").val("");
					//return false;
				}
				if(isNaN($("#toDateNumber2").val())){
					alert("航班日期范围只能为数字！");
					$("#toDateNumber2").val("");
					$("#toDateNumber2").focus();
					
				}else{
					var param=[
						   		{name:"fromCity",value: $("#fromCity2").val()},
								{name:"toCity",value: $("#toCity2").val()},
								{name:"grabChannel2",value: $("#grabChannel2").val()},
								{name:"validityFromStr",value: $("#grapDate").val()},
								{name:"formDateNumber",value: $("#formDateNumber2").val()},
								{name:"toDateNumber",value: $("#toDateNumber").val()}
						        ];
						gridManager.loadServerData(param);/*执行服务器查询*/
				}
				
			}
		
		
		 
	 }
	
		
}
function itemclick(item)
{
	switch (item.id) {
		case "add":
		 openFormDialog(false);
	        break;
		case "modify":
		 openFormDialog(true);
	        break;
		case "remove":
			deleteAction();
	        break;
	}
}

function deleteAction(){
	 var newRow = gridManager.getSelected();
	    if (!newRow) { alert('请选择行'); return; }
	    
	    var removeData = '';
		  $.each(gridManager.getCheckedRows(), function(index, element) {
			  removeData = removeData + element.id + ',';
		  });
		  removeData = removeData.substr(0, removeData.length - 1) ;
		  var flag=confirm("确认删除？");
			if(!flag){
				return false;
			}
	    $.post("taskInfoAction!deleteTaskInfoEntity.action", 
				 { "checkboxs":removeData},
				   function(data){
					 
					 if(data && data=='OK'){
						 gridManager.loadData();
					 }
			   }, "text");
	    
}
function openFormDialog(edit){
	var url = "<%=request.getContextPath()%>/taskInfoAction!newAnTaskInfo.action";
	if(edit){
		var newRow = gridManager.getSelected();
	     if (!newRow) { alert('请选择行'); return; }
	     var i = 0;
	     $.each(gridManager.getCheckedRows(), function(index, element) {
			  i++;
		  });
	     if(i>1){
	    	 alert('请只选择一行'); return;
	     }
	     id = newRow.id;
	     url = "<%=request.getContextPath()%>/taskInfoAction!modifyTaskInfoEntity.action?taskId=" + newRow.id;
	}
	_dialog = jQuery.ligerDialog.open({
  	    title: edit ? '编辑' : '新增',
  	    url:url,
  	    isResize: true, width: 850, height: 450, isHidden: false
      });
}

var flag = 'zqhxsz';
function jumpToAdd(){
	window.location.href = "taskInfoAction!newAnTaskInfo.action";
	/* $.ajax({
		   type: "POST",
		   async: false,
		   url: "taskInfoAction!newAnTaskInfo.action",
		   success: function(msg){
		   }
		});	 */
}
function clearAll(){
	//alert('dd');
	 $("#toCity2").val("");
	 $("#fromCity2").val("");
	 $("#grapDate").val("");
	$("#formDateNumber2").val("");
	$("#toDateNumber2").val("");
}
function deleteBatch(){
	var flag=confirm("确认删除？");
	if(!flag){
		return false;
	}
	var checkboxs = '' ;
	//获得选择的checkbox id
	 $('input[name="chooseBox"]:checked').each(function(){  
		checkboxs +=  $(this).val()+',';
	 }); 
	// alert(checkboxs);
	 $.post("taskInfoAction!deleteTaskInfoEntity.action", 
			 { "checkboxs":checkboxs},
			   function(data){
				 
				 if(data && data=='OK'){
					 window.location.reload();
				 }
		   }, "text");
	
	
}




function deleteOne(){
	
	
}

function templateDownload(){
	window.location.href = "<%=request.getContextPath() %>/crawl/line/lineimport/excelTemplate.action";	
}

function uploadSubmit(){
	$.post("<%=request.getContextPath() %>/crawl/line/lineimport/excelImport.action" ,
			{"uploadFile":$("#uploadFileBtn").val()},
	        function(data){
	     alert("data");
	   }, "text");
	
	
	
}


function showm(sid){
var which = document.getElementById("lite" + sid);
var imgmenu = document.getElementById("ling" + sid);
	if (which.style.display == "none"){
		document.getElementById("lite" + sid).style.display="";
	}
	else{
		document.getElementById("lite" + sid).style.display="none";
		}

}
function currentDate(){ 
    var now = new Date();       
    var year = now.getFullYear();
    var month = now.getMonth() + 1;
    var day = now.getDate();
   
    var today = year + "-";       
    if(month < 10)
        today += "0";       
    today += month + "-";       
    if(day < 10)
        today += "0";           
    today += day;       
    return(today); 
}
</script>
<script type="text/javascript">
function ajaxFileUpload()
{
	var flag=confirm("确认上传？");
	if(!flag){
		return false;
	}
    $("#loading")
    .ajaxStart(function(){
    	FDCWait.show();
    })//开始上传文件时显示一个图片
    .ajaxComplete(function(){
       // $(this).hide();
    });//文件上传完成将图片隐藏起来
    
    $.ajaxFileUpload
    (
        {
            url:'<%=request.getContextPath() %>/crawl/line/lineimport/excelImport.action',//用于文件上传的服务器端请求地址
            secureuri:false,//一般设置为false
            fileElementId:'uploadFile',//文件上传空间的id属性  <input type="file" id="file" name="file" />
            dataType: 'json',//返回值类型 一般设置为json
            success: function (data, status)  //服务器成功响应处理函数
            {   
            	//alert(data);
            	FDCWait.hide();

                if(data && data.hasOK)
                {
                	alert("import success");
                  //
                }else{
                	//$("#test1").html(data.bean);
                	$.ligerDialog.error(data.bean,"导入错误");
                	 //$.ligerDialog.open({ target: $("#target1") });
                	 
                	//alert(data.bean);
                }
            },
            error: function (data, status, e)//服务器响应失败处理函数
            {
                alert(e);
            }
        }
    )
    
    return false;

}
</script>
<script type="text/javascript">
	$(document).ready(function(){
		if("${act}"!="update"){//非更新状态下让其可以选择城市
			$('#fromCity').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
			$('#toCity').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
		}
		
	});
	$(document).ready(function(){
		$('#fromCity2').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
		$('#toCity2').querycity({'data':citysFlight,'tabs':labelFromcity,'hotList':hotList});
	});
	function loadAndDisplayData(grid,url){
		if('${depCity}'!=''&&'${arrCity}'!=''){
			$.ajax({
		        url : url,
		        data:{
		        	depCity:"${depCity}",
		        	arrCity:"${arrCity}",
		        	beginDateAfterToday:"${beginDateAfterToday}",
		        	endDateAfterToday:"${endDateAfterToday}",
		        	channels:"${channels}",   
		        	priceType:"${priceType}",
		        	grapDate:"${grapDate}",
		        	bookingType:"${bookingType}"
		        	},
		        cache : false, 
		        async : false,
		        type : "POST",
		       	complete: function(jqXHR, textStatus){
		       		if(jqXHR.status==200){
		       			result = parseObj(jqXHR.responseText)
		       			var data = result.json;
			        	var xml = result.xml;
			        	grid.ligerGrid({
			                height:'284px',
			                columns:columns,
			                data:data,
			                pageSize:10,
			                rownumbers:true
			            });
			        	$('#text').val(xml);
			        	setChart();
		       		}
		       	}
		    });
		}
	}

	var columns = [
				   { display: '序号', name: 'sequenceNumber', minWidth: 30},
	               { display: '航段', name: 'line', minWidth: 100 },
	               { display: '航班日期范围', name: 'date', minWidth: 140 },
	               { display: '网站名称', name: 'siteName' },
	               { display: '航班号', name: 'flightNo' },
	               { display: '最低价', name: 'price' },
	               { display: '代理人名称', name: 'agentName' },
	               { display: '订票类型', name: 'bookingType' },
	               ];
	$(function(){
		if(flag && flag =='zqhxsz'){
			$("table a").attr("href","javascript:void(0);");
		
			$("table a").click(function(){
				
				
				
				
				
			});
		}
		
		
		
		$(".deleBtn").click(function(){
			//alert($(this).attr("id"));
			var flag=confirm("确认删除？");
			if(!flag){
				return false;
			}
			 $.post("taskInfoAction!deleteTaskInfoEntity.action", 
					 { "taskId":$(this).attr("id")},
					   function(data){
						 
						 if(data && data=='OK'){
							 window.location.reload();
						 }
				   }, "text");
			
			
			
			
			
		});
		
		$(".modifyBtn").click(function(){   
			window.location.href = "taskInfoAction!modifyTaskInfoEntity.action?taskId="+$(this).attr("id")+"&act=update&grabChannelId="+$(this).attr("name")+"&idAndGrapScope="+$(this).attr("title");			
		});																																				       
	});
	
	
	
function changeAction(url){
	$('#channel').attr('action',url);
}

</script>


<script type="text/javascript">
	//保存抓取航空设置提交
	function checkForm() {

		var myAct=$("#myAct").val();//表单提交动作  update=="更新"  其他为保存动作
		
		if(myAct=="update"){
			if ($("#grabChannel").val() == '') {
				alert("网站名称不能为空！");
				$("#grabChannel").focus();
				return false;
			}
		}else{//多选
			var len=$("input[name='grabChannel_chb']:checked").length;
			if(len==0){
				alert("请至少选择一个网站");
				return false;
			}
			
		}
		
		 var tocity = $("#toCity").val();
		 var formcity = $("#fromCity").val();
		 
		 if(tocity ==''||formcity==''||tocity=='中文/拼音'||formcity=='中文/拼音'){
			 alert("航段设置不能为空，请选择！");
			 $("#fromCity").focus();
			 return false;
		 }
		 if(formcity == tocity){
			 alert("出发地与目的地不能相同，请重新选择！");
			 $("#fromCity").focus();
			 return false;
		 }
		 
		
		
		if ($("#formDateNumber").val() == '') {
			alert("航班日期范围不能为空！");
			$("#formDateNumber").focus();
			return false;
		}
		var formDateNumber = $("#formDateNumber").val();
		var reg1 = new RegExp("^\\d+$"); 
		if(formDateNumber.match(reg1) == null){
			alert("请正确填写航班日期范围");
			$("#formDateNumber").focus();
			return false;
		}
		
		if ($("#toDateNumber").val() == '') {
			alert("航班日期范围不能为空！");
			$("#toDateNumber").focus();
			return false;
		}
		var toDateNumber = $("#toDateNumber").val();
		var reg1 = new RegExp("^\\d+$"); 
		if(toDateNumber.match(reg1) == null){
			alert("请正确填写航班日期范围");
			$("#toDateNumber").focus();
			return false;
		}
		if(formDateNumber > toDateNumber){
			alert("航班日期范围开始时间必须小于或等于结束时间");
			$("#formDateNumber").focus();
			return false;
		}
		
		
		if ($("#validityFromStr").val() == ''
				|| $("#validityFromStr").val() == null) {
			alert("抓取时间段不能为空！");
			$("#validityFromStr").focus();
			return false;
		}
		if ($("#validityToStr").val() == ''
				|| $("#validityToStr").val() == null) {
			alert("抓取时间段不能为空！");
			$("#validityToStr").focus();
			return false;
		}
		
		var frequency = $("#frequency").val();
		 if(frequency == ''){
			 alert('抓取频率不能为空！');
			 $("#frequency").focus();
				return false;
		 }
		 if(frequency <= 0 || frequency > 99 || isNaN(frequency)){
			 alert('抓取频率必须在0到99之间的数字！');
			 $("#frequency").focus();
				return false;
		 }
		 if(frequency.indexOf('.') > 0){
			 var array = frequency.split(".");
			 if(array[1].length > 1){
				 alert('抓取频率最多允许输入1位小数！');
				 $("#frequency").focus();
					return false;
			 }
		 }
		
		
		
		if ($("#isReturn").val() == '1') {
			
			
			if ($.trim($("#returnDateScope").val()) == '') {
				alert("抓取往返数据时，往返天数不能为空！");
				$("#returnDateScope").val("");
				$("#returnDateScope").focus();
				return false;
			}
			if(isNaN($("#returnDateScope").val())){
				alert("抓取往返数据只能为数字！");
				$("#returnDateScope").val("");
				$("#returnDateScope").focus();
				
				return false;
			}
			
			var re =new RegExp("^[0-9]*[1-9][0-9]*$");
			if($("#returnDateScope").val().match(re) == null){
				alert("抓取往返天数项中,请输入正整数值");
				$("#returnDateScope").val("");
				$("#returnDateScope").focus();
				return false;
			}
		}
		
		var priority = $("#priority").val();
		 if(priority == ''){
			 alert("抓取权重不能为空！");
				$("#priority").focus();
				return false;
		 }
		 
		var reg = new RegExp("^\\d+$"); 
		if(priority.match(reg) == null || priority>1001 || priority <0){
			alert("抓取权重必须为0到1000之间的整数");
			$("#priority").focus();
			return false;
		}

		
		
		var len=$("input[name='grabChannel_chb']:checked").length;
		if(len>=1){
			var webName=new Array();
			var i=0;
			$("input[name='grabChannel'][type='hidden']").val("");//清空
			$("input[name='grabChannel_chb']:checked").each(function(){
				webName[i]=($(this).val().split(","))[2];
				var self=this;
				var oldStr=$("input[name='grabChannel'][type='hidden']").val();
				if(oldStr!="" && len>1){
					oldStr+=";";//分割符号
				}
				$("input[name='grabChannel'][type='hidden']").val(oldStr+$(self).val());
				i++;
			});
			var flag=confirm("您所选择的网站有\n\n"+webName.join("\n")+"\n\n是否继续保存？");
			if(!flag){
				return false;
			}
		}
		
		$("#grabChannel").attr('disabled',false);
		$("#taskForm").submit();
	}

	
	
	function showTaskInfoList() {
		
		 var tocity2 = $("#toCity2").val();
		 var formcity2 = $("#fromCity2").val();
		 
		 /* if(tocity2 ==''||formcity2==''||tocity2=='中文/拼音'||formcity2=='中文/拼音'){
			 alert("航段设置不能为空，请选择！");
			 $("#fromCity2").focus();
			 return false;
		 } */
		 
		 /* if(tocity ==''||formcity==''||tocity2=='中文/拼音'||formcity2=='中文/拼音'){
			 alert("航段设置不能为空，请选择！");
			 $("#fromCity").focus();
			 return false;
		 } */
		 
		 if((formcity2 == tocity2)&(tocity2 !='中文/拼音')&(formcity2 !='中文/拼音')){
			 alert("出发地与目的地不能相同，请重新选择！");
			 $("#fromCity2").focus();
			 return false;
		 }
		
		var formDateNumber2=$.trim($("#formDateNumber2").val());
		var toDateNumber2=$.trim($("#toDateNumber2").val());
		
		if(formDateNumber2==""){
			//alert("航班日期范围不能为空！");
			$("#formDateNumber2").val("");
			//return false;
		}
		
		if(isNaN(formDateNumber2)){
			alert("航班日期范围只能为数字！");
			$("#formDateNumber2").val("");
			$("#formDateNumber2").focus();
			return false;
		}
		
		if(toDateNumber2==""){
			//alert("航班日期不能为空！");
			$("#toDateNumber2").val("");
			//return false;
		}
		if(isNaN($("#toDateNumber2").val())){
			alert("航班日期范围只能为数字！");
			$("#toDateNumber2").val("");
			$("#toDateNumber2").focus();
			return false;
		}
		 $("#currentPageNo").val('1');
		 $("#page-number").val('1');
		//$("#showTaskInfoListForm").submit();
		
	    
	}
	
	//分页查询
	function searchOnSubmit(e) {
		var pageSize = $("#pageSize").val();
		var pageNum = $("#pageNum").val();
		if(e!=undefined){//表示是pageSize触发了变化
			//pageNum="1";//在pageSize变化的情况下需要把页码重置到第一页
			$("#pageNum").val("1");//pageNum重置为1
		}
		$("#showTaskInfoListForm").submit();//提交表单
	} 
	
	// 导出订单
	function emp() {
		var grabChannel2 = $("#grabChannel2H").val();
		var fromCity = $("#fromCityH").val();
		var toCity = $("#toCityH").val();
		var formDateNumberStrs = $("#formDateNumberStrsH").val();
		var toDateNumberStrs = $("#toDateNumberStrsH").val();
		var str = 'grabChannel2H='+grabChannel2+'&fromCityH='+fromCity+'&toCityH='+toCity
				 +'&formDateNumberStrsH='+formDateNumberStrs+'&toDateNumberStrsH='+toDateNumberStrs;
		$("#showTaskInfoListForm").attr("action","taskInfoAction!exculTaskInfo.action?"+str).submit();
	}

	// 导入订单
	function imp() {
		if($("#fileText").val() == "" || $("#fileText").val() == null){
			alert("请选择需要导入的Excel文件！");
			return false;
		}else{
			$("#showTaskInfoListForm").attr("action","taskInfoAction!impExculTaskInfo.action?imageFileName="+$("#fileText").val()).submit();
		}
	}
	
	 //商家全选
    function allCheckbox(id){ //用id区分  
		var tform=document.forms['showTaskInfoListForm'];  
		for(var i=0;i<tform.length;i++){  
			var e=tform.elements[i];  
			if(e.type=="checkbox" && e.name==id) e.checked=!e.checked;  
		}  
	 } 
	 
	 function allDeleteTaskInfo(){
		 
		 if(confirm('确定要删除吗？')){
			 $("#showTaskInfoListForm").attr("action","taskInfoAction!deleteTaskInfoEntity.action").submit();
		 }
	 }
	 
	 
	 function currentDate(){ 
		    var now = new Date();       
		    var year = now.getFullYear();
		    var month = now.getMonth() + 1;
		    var day = now.getDate();
		   
		    var today = year + "-";       
		    if(month < 10)
		        today += "0";       
		    today += month + "-";       
		    if(day < 10)
		        today += "0";           
		    today += day;       
		    return(today); 
		} 
	 
	 
	 
	 $(function(){
	 
		//==============================================================================================================xiaoken start
		//不要经常用onblur失去焦点来判断玩之后弹出框又让焦点回去，某种情况下会造成死循环
		if("${act}"!="update"){//非更新情况下默认为当前时间，一定要加这个条件，不然下面代码冲突，大哥谁写的代码啊！！！
			$("#validityFromStr").val(currentDate());
			$("#validityToStr").val("2099-12-31");
		}else{//更新状态下出发到达城市只读
			$("#fromCity").attr("readonly",true);
			$("#toCity").attr("readonly",true);
			//是否抓去往返  1==是  0==否
			$("#isReturn").val($.trim(${taskInfoVO.isReturn}));
			if($("#isReturn").val()=="0"){
				$("#returnDateScope").val("");//在不抓取往返天数的情况下，请置空
			}
			//回填权重
			$("#priority").val(${taskInfoVO.priority});
		}
		//选择是否抓取
		$("#isReturn").change(function(){
			if($(this).val()=="0"){
				$("#returnDateScope").val("");//在不抓取往返天数的情况下，请置空
			}
		});
		//测试
		//alert("${taskInfoVO}");
		
		//==============================================================================================================xiaoken end
		 
		 
		 
		 
		 var channel = "${taskInfoVO.grabChannel}";
		 if(channel == ''){
			 $("#grabChannel").find("option").each(function(){
				 var val = $(this).val();
				 if(val.indexOf('南方航空') > 0){
					 $(this).attr("selected","selected");
				 }
			 });
		 }
		 
		 var status = "${status}";
		
		 if(status == "taskInfonotfound" ){
			 alert("查无数据，请重新选择查询条件");
		 }
		 
	 });
	 
	 
	 function chekcformDateNumber(){
		 
		 	
			var reg = new RegExp("^\\d+$"); 
			var value = $("#formDateNumber").val();
		 if (value == '') {
			alert("航班日期范围不能为空！");
			$("#formDateNumber").focus();
			return false;
		}		
		 
		 
		if(value < 0 || value > 360 || value.match(reg) == null){
			 alert('请填写0到360之间的数字！');
			 $("#formDateNumber").val("");
			 $("#formDateNumber").focus();
				return false;
		}
		
		
		
		/* if(value.match(reg) == null){
			alert("请正确填写航班日期范围");
			$("#formDateNumber").val("");
			$("#formDateNumber").focus();
			return false;
		} */
		
	 }
	 
	 function chekcformtoDateNumber(){
		var value2 = $("#toDateNumber").val();
		var reg = new RegExp("^\\d+$"); 
		if (value2 == '') {
			alert("航班日期范围不能为空！");
			
			$("#toDateNumber").focus();
			return false;
		}
		 
		/* if(value.match(reg) == null){
			alert("请正确填写航班日期范围");
			$("#toDateNumber").val("");
			$("#toDateNumber").focus();
			return false;
		} */		
		
		if((value2 < 0) || (value2 > 360) || (value2.match(reg) == null)){
			 alert('请填写0到360之间的数字！');
			  $("#toDateNumber").val("");
			 $("#toDateNumber").focus();
				return false;
		}
		
		var fordate =  $("#formDateNumber").val();
		if(fordate > value2){
			alert("航班日期范围开始时间必须小于或等于结束时间");
			$("#toDateNumber").val("");
			$("#formDateNumber").focus();
			return false;
		}
		
	 }
	 
	 function chekctoDateNumber2(){

		 
		 var value = $("#formDateNumber2").val();
		 	
			var reg = new RegExp("^\\d+$"); 
		/*  if (value == '') {
			alert("航班日期范围不能为空！");
			$("#formDateNumber2").focus();
			return false;
		} */		
		if(value != "" && (value < 0 || value > 360 || value.match(reg) == null)){
			 alert('请填写0到360之间的数字！');
			 $("#formDateNumber2").val("");
			 $("#formDateNumber2").focus();
				return false;
		}
	 }
	 
	 function chekcformtoDateNumber2(){
			var value2 = $("#toDateNumber2").val();
			
			var reg = new RegExp("^\\d+$"); 
			/* if (value2 == '') {
				alert("航班日期范围不能为空！");
				$("#toDateNumber2").focus();
				return false;
			} */
			 
			/* if(value.match(reg) == null){
				alert("请正确填写航班日期范围");
				$("#toDateNumber").val("");
				$("#toDateNumber").focus();
				return false;
			} */		
			
			if(value2 != "" && (value2 < 0 || value2 > 360 || value2.match(reg) == null)){
				 alert('请填写0到360之间的数字！');
				  $("#toDateNumber2").val("");
				 $("#toDateNumber2").focus();
					return false;
			}
			
			var fordate =  $("#formDateNumber2").val();
			if(fordate > value2){
				alert("航班日期范围开始时间必须小于或等于结束时间");
				$("#toDateNumber2").val("");
				$("#formDateNumber2").focus();
				return false;
			}
			
		 }
	 
	 
	 function checkfrequency(){
		 var frequency = $("#frequency").val();
		 if(frequency == ''){
			 alert('抓取频率不能为空！');
			 $("#frequency").focus();
				return false;
		 }
		 if(frequency <= 0 || frequency > 99 || isNaN(frequency)){
			 alert('抓取频率必须在0到99之间的数字！');
			 $("#frequency").val("");
			 $("#frequency").focus();
				return false;
		 }
		 if(frequency.indexOf('.') > 0){
			 var array = frequency.split(".");
			 //alert(array[1]);
			 if(array[1].length > 1){
				 alert('抓取频率最多允许输入1位小数！');
				  $("#frequency").val("");
				 $("#frequency").focus();
					return false;
			 }
		 }
		 
	 }
	 
	 function checkpriority(){
		 var priority = $("#priority").val();
		 if(priority == ''){
			 alert("抓取权重不能为空！");
				$("#priority").focus();
				return false;
		 }
		 
		var reg = new RegExp("^\\d+$"); 
		if(priority.match(reg) == null || priority>1000 || priority <0){
			alert("抓取权重必须为0到1000之间的整数");
			$("#priority").val("");
			$("#priority").focus();
			return false;
		}
			
	 }
	 
	 
	 
	 
	
</script>


<style type="text/css">
<!--
.STYLE1 {
	color: #3366cc
}
-->

#allWeb_table{
	margin-top:10px;
}
#allWeb_table tr{
	
}

#allWeb_table td{
	padding:5px;
	
}


</style>
</head>

<body>
   <%--  <jsp:include page="../inc/treelist3.jsp"></jsp:include> --%>
<div class="main main_max minhgt450" style="width: auto;">
	<div class="sideBar">
	<!-- <div class="box">
		<div class="location">当前位置： 抓取管理&gt; 抓取航线设置</div>
	</div> -->
	</div>
	<div class="l-case-title" style="display: none;"></div>
	
	<div id="target1" style="width:200px; margin:3px; display:none;">
	<div id="test1"></div>
   </div>
<div class="form_table_tltle">查询条件 </div>

	<%-- <form id="taskForm" action="taskInfoAction!editTaskInfo.action" method="post">
	<input type="hidden" value="${fromCity}" id="hfromCity" name="hfromCity"/>
	<input type="hidden" value="${toCity }" id="htoCity" name="htoCity"/>
	<input type="hidden" value="${formDateNumber }" id="hformDateNumber" name="hformDateNumber"/>
	<input type="hidden" value="${toDateNumber }" id="htoDateNumber" name="htoDateNumber"/>
	<input type="hidden" value="${grabChannel2 }" id="hgrabChannel2" name="hgrabChannel2"/>
	<!-- 一个用于标明本次页面跳转的动作元素 -->
	<input type="hidden" value="${act}" id="myAct" name="act"/>
	<!-- 在新增的时候用来存放字符串的 -->
	 <s:if test="act!='update'">
	 	<input type="hidden" value="" name="grabChannel"/>
	 </s:if> --%>
	
	
		<%-- <TABLE cellSpacing=1 cellPadding=3 width="100%" border=0 class="tabg">
			<TBODY>
				<TR class="tr1">
					<TD colspan="4"><p style="color: FFFFFF">抓取航线设置</p></TD>
				</TR>
				<TR class="tab">
					<TD width="10%" height="26" style="text-align: left" class="td1">配置描述：
					</TD>
					<TD colspan="3"><textarea readonly="readonly" style="width: 500px; resize: none;" rows="3" cols="50" name="remark">在本模块可以设定从哪些网站抓取运价，抓取的航班，日期，频率等等，只有满足这些配置的航段才会进行数据抓取
					</textarea></TD>
				</TR>
				<input type="hidden" name="taskId"  id ="taskId"  value="${taskInfoVO.id }" />
				<TR class="tab">
					<TD height="26" style="text-align: left" class="td1">网站名称：</TD>
					<TD colspan="3">
					
						 <s:if test="act=='update'">
							<select class="easyui-combobox" name="grabChannel" style="width: 150px;" id="grabChannel"    <s:if test="act=='update'">disabled="disabled"</s:if>>
								<c:choose>
									<c:when test="${sourceVOList == null}">
									</c:when>
									<c:otherwise>
										<c:forEach var="item" items="${sourceVOList }">
											<option value="${item.idAndHbaseKeyAndName}"      <c:if test="${item.name==taskInfoVO.grabChannel }">selected='selected'</c:if>>${item.name}</option>
										</c:forEach>
									</c:otherwise>
								</c:choose>
							</select> 
							<span style="color: #ff0000">*</span>
						</s:if>
						
						
						<!-- 多选网站的模块，如果是修改的情况下保持原来的不变，新增下会出现此模块 -->
						 <s:if test="act!='update'">
						
						 
						 
							<hr>
							<c:choose>
								<c:when test="${sourceVOList == null}">
									暂无网站数据
								</c:when>
								<c:otherwise>
								<table  id="allWeb_table" >
							 		<tr>
								 		<td colspan="4"><p style="color:red">* 您可以同时选择多个网站进行保存</p></td>
								 	</tr>
						 			<c:forEach var="item" items="${sourceVOList }" varStatus="status">
						 				<c:if test="${status.first}" >
						 					<tr>
						 				</c:if>
							 				<td>
							 					<input type="checkbox" id="${status.index}" name="grabChannel_chb" value="${item.idAndHbaseKeyAndName}"></input> 
							 					<!--  
							 					<label for="${status.index}">${item.name}</label> 
							 					-->${item.name}
							 					
							 				</td>
						 				<c:if test="${(status.index+1)%4==0 && !status.first}">
						 					</tr>
						 				</c:if>
						 				<c:if test="${(status.index+1)%4==0 && !status.last && !status.first}">
						 					<tr>
						 				</c:if>
						 			</c:forEach>
						 			<tr>
						 				<td colspan="4"></td>
						 			</tr>
								</table>
								</c:otherwise>
							</c:choose>
						
							<hr>
						</s:if>
						
						<!--  <br><input type="text" name="grabChannel" id="grabChannel"/> --> 
						
					</TD>
				</TR>
				<TR class="tab">
					<TD height="26"  style="text-align: left" class="td1">航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;段：</TD>
					<TD >
						<div >
							<span>从 </span> 
							<!-- <s:if test="act!='update'">id='fromCity'</s:if> -->
							<!-- <s:if test="act=='update'">readonly=true </s:if> -->
							<input  id="fromCity" name="fromCity" type='text' value='${taskInfoVO.fromCityName }' style="width: 100px" /> 
							<span>到</span> 
							<input onchange="checktoCity()" id="toCity"  name="toCity" type='text' value='${taskInfoVO.toCityName }' style="width: 100px" />
							<span style="color: #ff0000">*</span><br />
						</div>
					</TD>
					<TD style="text-align: left" class="td1">航班日期范围：</TD>
					<TD >
						<span>未来 </span> 
						<input type="text" onchange="chekcformDateNumber()" maxlength="3" style="width: 40px" id="formDateNumber" value="${taskInfoVO.grabsopeBegin }" name="formDateNumber"> 
						<span>到</span> <input type="text" onchange="chekcformtoDateNumber()" maxlength="3" style="width: 40px" id="toDateNumber" value="${taskInfoVO.grabsopeEnd }" name="toDateNumber"> 
						<span>天的航班</span> 
						<span style="color: #ff0000">*请填入范围（0~360）的值</span>
					</TD>
				</TR>
				<TR class="tab">
					<TD height="26" style="text-align: left" class="td1">抓取时间段：</TD>
					<TD>
						<span>从 </span> 
						
						<input type="text" style="width: 100px" id="validityFromStr"   
							value="<fmt:formatDate pattern='yyyy-MM-dd' value='${taskInfoVO.validityFrom}'/>"
							name="validityFromStr"
							onClick="WdatePicker({maxDate:'#F{$dp.$D(\'validityToStr\')||\'2099-12-31\'}'})"/> 
						
							
						<span>到</span> 
						<input type="text" style="width: 100px" id="validityToStr" value="<fmt:formatDate pattern="yyyy-MM-dd" value="${taskInfoVO.validityTo}" />" name="validityToStr" 
						onClick="WdatePicker({minDate:'#F{$dp.$D(\'validityFromStr\')}',maxDate:'2099-12-31'})"> 
						<span style="color: #ff0000">*</span>
					</TD>
					<TD style="text-align: left" class="td1">抓取频率：</TD>
					<TD>
						<span>每</span> 
						<input type="text" style="width: 40px" onchange="checkfrequency()" maxlength="4" id="frequency" value="${taskInfoVO.frequency}" name="frequency"> 
						<span>小时抓去一次</span>
						<span style="color: #ff0000">*</span>
					</TD>
				</TR>
				<TR class="tab">
				<TD style="text-align: left" class="td1">是否抓取往返数据：</TD>
					<TD>
						<!--  <!--<c:if test="${taskInfoVO.isReturn=='0 '||taskInfoVO.isReturn=='0'}"> selected='selected'</c:if> -->
						<select id="isReturn" name="isReturn">
						<option value="1">是</option>
						<option value="0">否</option>
						</select>
					</TD>
					
					<TD style="text-align: left" class="td1">抓取往返天数：</TD>
					<TD>
						<span>从起飞日往后</span> 
						<input type="text" style="width: 40px"  maxlength="4" id="returnDateScope" value="${taskInfoVO.returnDateScope==null?3:taskInfoVO.returnDateScope }" name="returnDateScope"> 
						<span>天</span>
						<span style="color: #ff0000">*</span>
					</TD>
				</tr>
				<tr class="tab">
				<td style="text-align: left" class="td1">抓取权重: </td>
				<TD >
				<input type="text" style="width: 40px" onchange="checkpriority()" id="priority" name="priority" value="0"/> <!-- 默认0 -->
				
				<span style="color: #ff0000">*抓取权重优先+1，默认为0，封顶1000，值越大的抓取的优先权越高</span>
				</TD>
				<td style="text-align: left" class="td1"> </td>
			 	<td></td>
				</tr>
				<TR class="tab">
					<TD height="26" colspan="4" align="center">
						<input type="button" name="Submit222" value="保存" id="Submit222" style="width: 80px;cursor: pointer; cursor: hand;" 
						onclick="javascript:checkForm();">
					</TD>
				</TR>
			</TBODY>
		</TABLE>--%>
	<!-- </form>

	<p></p> -->

<!-- 	<form id="showTaskInfoListForm" name="channelForm" action="taskInfoAction!showTaskInfoList.action" method="post" enctype="multipart/form-data"> -->
		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0  class="form_table">
			<TBODY>
				<TR >
				    <TD width="40" height="26" style="text-align: left" class="left">航&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;段：</TD>
					<TD width="120" class="left" style="text-align:left">
							<%-- <span>从 </span>  --%>
							<input id='fromCity2' name="fromCity" style="width: 85px" type='text' value="${fromCity}"/> 
							<span>到</span> 
							<input id='toCity2' name="toCity" style="width: 85px" type='text' value="${toCity }" />
							<!-- <br /> -->
					</TD>
					<TD width="120" class="left" style="text-align:left">网站名称：</TD>
					<TD width="120" class="left" style="text-align:left">
						<select class="easyui-combobox" name="grabChannel2" style="width: 150px;" id="grabChannel2">
							<option value="all" >全部</option>
							<c:choose>
								<c:when test="${sourceVOList == null}">
								</c:when>
								<c:otherwise>
									<c:forEach var="item" items="${sourceVOList }">
										<option value="${item.name}" 
											<c:if test="${item.name==grabChannel2 }">selected='selected'</c:if>
										>${item.name}</option>
									</c:forEach>
								</c:otherwise>
							</c:choose>

					  </select>
					
					
					</TD>
				</TR>
				<TR>
					<TD style="text-align: left" class="left" >开始抓取日期：</TD>
					<TD style="text-align: left" class="left">
						  	 <input name="validityFromStr" type="text" id="grapDate" style="width:100px" value="${validityFromStr}"   
						  	 onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd',maxDate:'%y-%M-%d'});" readonly="readonly"><!-- maxDate:'%y-%M-%d' -->
	 			 	</TD>
					<TD style="text-align: left" class="left" >航班日期范围：</TD>
					<TD class="left">
						<span>未来 </span> 
						<input type="text" maxlength="4" style="width: 30px" onchange="chekctoDateNumber2() " id="formDateNumber2" value="${formDateNumber }"  name="formDateNumber"> 
						<span>到</span> <input type="text" maxlength="4" onchange="chekcformtoDateNumber2()" style="width: 30px" id="toDateNumber2" value="${toDateNumber}" name="toDateNumber">
						<span>天的航班</span>
						
					</TD>
				</TR>
				<TR >
					<TD colspan="4" style="text-align: center;height: 35px">
						<input type="button" value="" id="Submit2" class="btn01" onclick="javascript:searchAction();">
						  <input type="button" onclick="clearAll()"  value="" class="btn02" id="Submit222"/>
					</TD>
					
				</TR>
				
				<!-- 	<TD>
	  	 <input type="button" onclick="javascript:checkJspForm();" value="" class="btn01" id="Submit2"/>
	    
	  
	  	</TD> -->
				<input type="hidden" name="currentPageNo" value="${currentPageNo}" id="currentPageNo">
				<input type="hidden" name="grabChannel2H" value="${grabChannel2}" id="grabChannel2H">
				<input type="hidden" name="fromCityH" value="${fromCity}" id="fromCityH">
				<input type="hidden" name="toCityH" value="${toCity}" id="toCityH">
				<input type="hidden" name="formDateNumberStrsH" value="${formDateNumberStrs}" id="formDateNumberStrs">
				<input type="hidden" name="toDateNumberStrsH" value="${toDateNumberStrs}" id="toDateNumberStrs">
				
			</TBODY>
		</TABLE>
	<p></p>
	
	
	<p></p>
		<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0  class="form_table">
			<TBODY>
				<TR >
				    <TD  style="text-align: center;width: 100px">
				    <input type="button" onclick="templateDownload()"  value="" class="btn17" />
				    </TD>
				    <td  style="text-align: center;width: 100px">
				    	  批量导入:
				    </td>
				    <td  style="text-align: left;">
				    		<img src="<%=request.getContextPath()%>/images/um/ajaxLoader.gif" id="loading" style="display: none;">	
				    	  <input type="file" id="uploadFile" name="uploadFile" >
				    	  <input type="button" value="" class="btn14" onclick="return ajaxFileUpload();">
				    </td>
				   
				 
				</TR>
			<!-- 	<TR>
					<TD colspan="6" style="text-align: center;height: 35px">
					   删除
						<input type="button" value="" id="Submit2" class="btn18" onclick="javascript:deleteBatch();">
						 新增
						<input type="button" onclick="jumpToAdd()"  value="" class="btn15" id="Submit222"/>
					<a href="taskInfoAction!newAnTaskInfo.action" class="btn15" style="width: 54px;background-image: " ></a>
					</TD>
				</TR> -->
			
	
			</TBODY>
		</TABLE>
		
<%-- 	<table width="100%" border="1" cellpadding="0" CELLSPACING="0" class="form_table">
	    <div class="form_table_tltle">抓取航线查询结果
	     <!--   <tr class="tr1">
			  <td colspan="13" class="tdBorder"><p style="color: FFFFFF">抓取航线查询结果</p></td>
		   </tr> -->
		</div>
		
	
		<tr class="tr2">
			<!--
			<td rowspan="2" class="title">
				<input type="checkbox" name="checkboxs" style="border: 0px;" onclick="javascript:allCheckbox('checkboxs')">
			</td>
			<td rowspan="2" class="title">ID</td>
			-->
			<td rowspan="2" class="title" style="text-align:center;"><input type="checkbox" value="${task.idString}"></td> 
			<td rowspan="2" class="title" style="text-align:center;">航段</td>
			
			<td rowspan="2" class="title" style="text-align:center;">网站名称</td>
			<td rowspan="2" class="title" style="text-align:center;">规则</td>
			<td colspan="2" class="title" style="text-align:center;">抓取日期段</td>
			<!-- <td rowspan="2" class="title" style="text-align:center;">抓取频率<br> (小时/次)
			</td> -->
			<td rowspan="2" class="title" style="text-align:center;">是否抓取往返数据</td>
			<td rowspan="2" class="title" style="text-align:center;">默认返程天数</td>
			<td rowspan="2" class="title" style="text-align:center;">操作人</td>
			<td rowspan="2" class="title">操作时间</td>
			<td rowspan="2" class="title">操作</td>
		</tr>
		<tr class="tr2">
			<td class="title" style="text-align:center;">开始日期</td>
			<td class="title" style="text-align:center;">结束日期</td>
		</tr>

		<c:choose>
			<c:when test="${taskInfoEntityVOList == null}">
			</c:when>
			<c:otherwise>
				<c:forEach items="${taskInfoEntityVOList}" var="task">
					<tr class="tr2" ><!--  onMouseOver="fSetBg(this)" onMouseOut="fReBg(this)" -->
						<!-- <td><input type="checkbox" name="checkboxs" style="border: 0px;" value="${task.id }" onclick="javascript:mycheck(this)"></td>-->
						<td class="tdBorder" ><input type="checkbox" name="chooseBox" value="${task.idString}" style="text-align: left;"></td> 
						<td class="tdBorder">${task.fromCityName }-${task.toCityName }</td>
						
						<td class="tdBorder">${task.grabChannel }</td>
						<td class="tdBorder">${task.regulation}${task.grabsopeBegin }到${task.grabsopeEnd }天  ${task.frequency/60}</td>
						<td class="tdBorder"><fmt:formatDate pattern="yyyy-MM-dd" value="${task.validityFrom}" /></td>
						<td class="tdBorder"><fmt:formatDate pattern="yyyy-MM-dd" value="${task.validityTo}" /></td>
						<td class="tdBorder">${task.frequency/60 }</td>
						<td class="tdBorder">
						${task.isReturn=='1 '||task.isReturn=='1'?'是':'否'}
						
						</td>
						<td class="tdBorder">${task.returnDateScope }</td>
						<td class="tdBorder">${task.userName}</td>
						<td class="tdBorder"><fmt:formatDate pattern="yyyy-MM-dd" value="${task.userCreateTime}" /></td>
						<td class="tdBorder">
							<a> 
								<img class="modifyBtn"  id="${task.idString}" name="${task.grabChannelId}" src="<%=request.getContextPath()%>/fare/images/modify.png" title="${task.idAndGrapScope}" style="cursor: pointer; cursor: hand;"/></a> 
							<a> 
							<img class="deleBtn" id="${task.idString}" src="<%=request.getContextPath()%>/fare/images/delete.gif" title="删除" style="cursor: pointer; cursor: hand;"/></a>
						</td>
						
					</tr>
				</c:forEach>
				
			</c:otherwise>
		</c:choose>
	</table> --%>
	 <div class="list_page" style="height: 30px;">
 						<jsp:include page="../inc/pageComponent.jsp"></jsp:include>
 				 </div>

 			
	<!-- </form> -->
	<div id="maingrid"></div> 
	</div>
</body>
</html>

